package de.dhbw.karlsruhe.picsim.model.actions.impl;

import de.dhbw.karlsruhe.picsim.model.actions.WriteInWAction;
import de.dhbw.karlsruhe.picsim.model.memory.RegisterValue;
import org.jetbrains.annotations.NotNull;

/**
 * Created by IntelliJ IDEA.
 * User: goesen
 * Date: Apr 13, 2010
 * Time: 12:22:14 AM
 */
final class WriteInWActionImpl implements WriteInWAction {
    private final RegisterValue value;

    WriteInWActionImpl(@NotNull final RegisterValue value) {
        this.value = value;
    }

    @NotNull
    @Override
    public RegisterValue getValue() {
        return value;
    }

    @Override
    public void acceptVisitor(@NotNull final Visitor visitor) {
        visitor.visit(this);
    }
}
